package com.zjw.project.weixin.api.accessToken;

import org.springframework.stereotype.Service;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

@Service
public class AccessTokenListener implements ServletContextListener {

    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("服务器启动了........");
//        new AccessTokenThread().start();
    }
    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        System.out.println("服务器关闭了。。。。。。。。");
    }
}